package com.remenote.remenoteback.dao;

import com.remenote.remenoteback.entity.doo.UserDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<UserDo,Integer> {
    UserDo findByUsername(String username);

    UserDo findByUsernameAndPassword(String username, String password);
    List<UserDo> findByGroupName(String groupName);
}
